package com.zyf.ratelimiter.refactor.alg;


import com.google.common.base.Stopwatch;
import jdk.nashorn.internal.runtime.regexp.joni.exception.InternalException;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 限流算法接口
 * @author yifeng
 */
public interface RateLimitAlg {
    boolean tryAcquire();
}
